package com.huawei.appgallery.forum.section.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import com.huawei.appgallery.forum.base.card.ForumNode;
import com.huawei.appgallery.forum.section.card.ForumNoticeCard;
import o.cab.e;
import o.cab.i;
import o.cih;

public class ForumNoticeNode extends ForumNode {
    public ForumNoticeNode(Context context) {
        super(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutInflater from = LayoutInflater.from(this.ॱ);
        View inflate = from.inflate(i.ॱ, null);
        LinearLayout linearLayout = (LinearLayout) inflate.findViewById(e.ˏॱ);
        View inflate2 = from.inflate(ˋ(), null);
        cih ˎ = ˎ();
        ˎ.ˏ(inflate2);
        ˊ(ˎ);
        linearLayout.addView(inflate2);
        viewGroup.addView(inflate);
        return true;
    }

    public ForumNoticeCard ᐝ() {
        return (ForumNoticeCard) ˎ(0);
    }

    protected ForumNoticeCard ˎ() {
        return new ForumNoticeCard(this.ॱ);
    }

    protected int ˋ() {
        return i.ˊ;
    }
}
